Skip to content

fix(axum-server): [#2776] adopt axum-server 0.9 timeouts and close idle-connection gaps - #2813

Merged
josecelano merged 14 commits into
torrust:developfrom
josecelano-bot:2776-axum-server-0-9-timeouts
Nov 11, 2026
Merged

josecelano merged 14 commits into
torrust:developfrom
josecelano-bot:2776-axum-server-0-9-timeouts

Conversation

@josecelano-bot

@josecelano-bot josecelano-bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Closes #2776. Child of EPIC #2411. Spec: docs/issues/open/2776-2411-axum-server-0-9-timeouts/ISSUE.md.

What changed

  • Require axum-server 0.9 in the root and the four Axum package manifests (axum-server was already 0.9.0 in the lockfile; no other resolution change).
  • custom_axum_server now has an injectable Timeouts (defaults: 5 s first request, header read and HTTP/2 keep-alive; 10 s TLS handshake) and applies Server::first_request_timeout in the one constructor path used by the HTTP tracker, REST API and health check API (the health check API no longer calls axum_server::from_tcp directly).
  • Added the silent-connection test (plaintext and TLS) to the HTTP tracker and REST API packages, next to the health check API one; a root clippy.toml (disallowed-methods) forbids the axum-server listener constructors and axum::serve outside custom_axum_server, and the call sites say why.
  • Added the ADR docs/adrs/20261111095222_close_idle_connections_without_a_408_response.md (silent close, no 408).
  • Removed TimeoutAcceptor, TimeoutStream, TimeoutService, TimeoutBody and their dependencies, and the stale "TLS does not work" comments. The with/without comparison (evidence V8) is identical for HTTP/1 and HTTP/2; the wrapper did not shorten an idle HTTP/2 connection (probable cause in the evidence, not separately tested).
  • Tests: packages/axum-server/tests/idle_connections.rs (silent plaintext and TLS, stalled handshake, one-byte handshake, post-response idle HTTP/1 and HTTP/2 over plaintext and TLS, and a well-behaved client) and a health check API test. The red run is in evidence/red-run.txt.
  • EPIC Spam and abuse resistance #2411 case A2 and the existing-controls rows updated.

Evidence (final build refactor(axum-server): [#2776] remove the TimeoutAcceptor wrapper)

Baseline probes rerun unchanged: the silent TLS connection and the silent health check API connection, which stayed open past 25 s on develop, now close after 5.0 s; the plaintext listeners and the TLS handshake bound are unchanged (5 s, 10 s). See manual-verification-evidence.md V8 and V9.

Review

Rounds 1 and 2 (37 findings in the audit) are addressed; audit in docs/pr-reviews/pr-2813-review/PR-REVIEW.md, retrospective beside it.

For the maintainer

🤖 Generated with Claude Code

josecelano-bot and others added 5 commits November 10, 2026 16:50
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…tests

Introduce injectable Timeouts for the shared constructors (first_request
declared but not yet applied) and tests that fail on that behaviour:
silent plaintext and TLS connections. Stalled handshake and post-response
idle (HTTP/1 and HTTP/2) are bounded already.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…quest_timeout

Apply Server::first_request_timeout in the shared constructors and make
the health check API use them instead of axum_server::from_tcp.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
first_request_timeout, the Hyper header read timeout and HTTP/2 keep-alive
bound every idle case the wrapper bounded (same probe results with and
without it, HTTP/1 and HTTP/2), and they also cover TLS and the health
check API. Drop TimeoutAcceptor, TimeoutStream, TimeoutService, TimeoutBody
and the dependencies only they used.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ust#2411 case A2 update

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

5 open issues
What changed in this PR

Updates Axum server construction across tracker components to use axum-server 0.9’s native timeout controls, closing idle-connection gaps (notably for TLS and the health check API) and removing the bespoke timeout wrapper.

Changes:

  • Bump axum-server to 0.9 across workspace and Axum-related packages; remove wrapper-related dependencies.
  • Replace the custom TimeoutAcceptor wrapper with axum-server/Hyper timeouts via a shared Timeouts struct and apply first_request_timeout.
  • Add regression tests for idle and stalled connections (plaintext/TLS, HTTP/1 and HTTP/2) plus supporting evidence/scripts/docs updates.
File Description
Cargo.toml Pins workspace axum-server dependency to 0.9 to enable new timeout behavior.
project-words.txt Adds spell-check allowlist entries used by new HTTP/2/TLS terminology.
packages/​axum-server/​Cargo.toml Updates axum-server to 0.9, removes wrapper deps, adds TLS test deps.
packages/​axum-server/​src/​custom_axum_server.rs Introduces Timeouts and applies first_request_timeout/Hyper timeouts; removes wrapper implementation.
packages/​axum-server/​tests/​idle_connections.rs Adds bounded regression tests covering idle plaintext/TLS, stalled handshakes, and post-response idle behavior.
packages/​axum-server/​tests/​fixtures/​https-health-check-cert.pem Adds test TLS certificate fixture for integration tests.
packages/​axum-server/​tests/​fixtures/​https-health-check-key.pem Adds test TLS private key fixture for integration tests.
packages/​axum-http-server/​Cargo.toml Pins axum-server to 0.9 for the HTTP server package.
packages/​axum-http-server/​src/​server.rs Removes use of the deleted TimeoutAcceptor.
packages/​axum-rest-api-server/​Cargo.toml Pins axum-server to 0.9 for the REST API server package.
packages/​axum-rest-api-server/​src/​server.rs Removes use/commented references to the deleted TimeoutAcceptor.
packages/​axum-health-check-api-server/​Cargo.toml Pins axum-server to 0.9 and adds dev-dependency tokio features for new test.
packages/​axum-health-check-api-server/​src/​server.rs Routes health check server creation through shared constructor; adds a regression test for silent connections.
docs/​issues/​open/​2776-2411-axum-server-0-9-timeouts/​ISSUE.md Updates status/tasks/ACs/progress log to reflect implementation and verification.
docs/​issues/​open/​2776-2411-axum-server-0-9-timeouts/​manual-verification-evidence.md Records updated manual verification evidence (incl. comparison and final recheck).
docs/​issues/​open/​2776-2411-axum-server-0-9-timeouts/​evidence/​run-probes.sh Adds a script to rerun all probes against a fresh tracker instance.
docs/​issues/​open/​2776-2411-axum-server-0-9-timeouts/​evidence/​probe-h2.py Adds an HTTP/2 “request then silence” probe used by evidence.
docs/​issues/​open/​2776-2411-axum-server-0-9-timeouts/​evidence/​red-run.txt Captures failing “red run” output to demonstrate regression coverage.
docs/​issues/​open/​2776-2411-axum-server-0-9-timeouts/​evidence/​results-with-wrapper.txt Evidence output for wrapper build used in comparison.
docs/​issues/​open/​2776-2411-axum-server-0-9-timeouts/​evidence/​results-without-wrapper.txt Evidence output for non-wrapper build used in comparison.
docs/​issues/​open/​2776-2411-axum-server-0-9-timeouts/​evidence/​results-final-build.txt Evidence output for final build recheck.
docs/​issues/​open/​2411-spam-and-abuse-resistance/​EPIC.md Updates EPIC case A2 and controls to reflect new timeout behavior and evidence links.

Review effort: Lite

Comment on lines +6 to +13
set -u
scratch=$1 tracker=$2 probe=$3 probe_h2=$4

cd "$scratch" || exit 1
rm -f sqlite3.db
TORRUST_TRACKER_CONFIG_TOML_PATH="$scratch/tracker.toml" "$tracker" >"$scratch/tracker.log" 2>&1 &
pid=$!
sleep 3

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 1: the script now uses set -eu and a trap that stops the tracker on any exit.

Comment on lines +460 to +490
#[tokio::test]
async fn it_should_close_a_connection_that_sends_nothing() {
use tokio::io::AsyncReadExt;

// Arrange
let cancellation_token = CancellationToken::new();
let running = start_with_cancellation(
any_available_port(),
Registar::default(),
Readiness::default(),
health_check_api_metadata(),
cancellation_token.clone(),
default_drain_timeout(),
)
.await
.expect("the token-aware health check API should start");
let mut silent_connection = tokio::net::TcpStream::connect(running.local_addr)
.await
.expect("open the silent connection");

// Act
let mut buffer = [0_u8; 16];
let closed = tokio::time::timeout(Duration::from_secs(8), silent_connection.read(&mut buffer)).await;

// Assert
assert!(
matches!(closed, Ok(Ok(0) | Err(_))),
"the health check API should close a connection that sends nothing: {closed:?}"
);
cancellation_token.cancel();
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 1: a drop_guard on the cancellation token cancels the server even when the assertion panics.

Comment on lines +1 to +4
-----BEGIN PRIVATE KEY-----
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDUC5ycf7iapE/0
PUWt3Tj60buIJJBDEVJXhi8mlZDnho0J+7dZYH2IsuHe2Ha4ADWNKYiMfqTSSsbo
9efFs8yvIl6S3UHxJphL82XQhRcucD4QlYI4jroLo+PrjqI3WCbpf6RW/H8fcMYB

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 1: a README beside the fixtures states it is a self-signed test key that must never leave tests. I kept the committed files rather than generating certificates at run time, because they are byte-identical to the existing fixtures of the REST API package.

Comment on lines +28 to +32
const SHORT: Duration = Duration::from_millis(300);

/// Absolute bound: a connection the server still keeps open after this long is
/// reported as not closed.
const TEST_DEADLINE: Duration = Duration::from_secs(3);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 1: the injected timeout is 500 ms and the test deadline 5 s; the tests still end in about 1 s.

Comment on lines 71 to 82
pub fn from_tcp_with_timeouts(socket: TcpListener) -> ServerResult {
axum_server::from_tcp(socket).map(add_timeouts)
from_tcp_with(socket, Timeouts::default())
}

/// Creates an Axum server from a TCP listener with the given timeouts.
///
/// # Errors
///
/// Returns an error if the server cannot be created from the TCP socket.
pub fn from_tcp_with(socket: TcpListener, timeouts: Timeouts) -> ServerResult {
axum_server::from_tcp(socket).map(|server| add_timeouts(server, &timeouts))
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No rename: both functions are public and used by three packages, and the pair from_tcp_with_timeouts / from_tcp_with reads as default versus explicit. Fixed in fix(axum-server): [#2776] address PR review round 1 by a doc note on both default constructors that says they use Timeouts::default() and points at the explicit ones.

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 024eb565aebd7cd9494563392eb77c999aa8c8b0. Recomputed from the bytes at this head, against the merge base c2b5d96ef; git merge-tree against develop 4a46f98b2 writes a clean tree (exit 0, no conflict; project-words.txt is the only file both sides touch).

Process: a bug fix, governed by .github/skills/dev/debugging/fix-bug/SKILL.md (red then green, issue-local evidence, builds named by commit subject), with commit-changes and open-pull-request for history and description. Spec, evidence, red run, regression tests and the EPIC row are present.

The change against its claim: five manifests require 0.9; Timeouts defaults are 5 s (first request, header read, HTTP/2 keep-alive) and 10 s (handshake); the three server packages build every listener through the two shared constructors, and the health check API no longer calls axum_server::from_tcp; the wrapper types and their five dependencies are gone. The new TLS fixture is byte-identical to the existing ones (IP SAN 127.0.0.1, valid to 2036), and the hand-built HTTP/2 frames decode correctly. The case for removing the wrapper rests on V8, which F1 questions.

Consistency: changed Markdown links resolve; the EPIC citations point where they say at this head (F3 is about their stated basis); alpn and hpack are used in the change.

Hygiene: Conventional subjects with [#2776]; author = committer on all five commits; each carries one co-author footer naming an AI identity, which no adopted rule in the tree forbids; git diff --check is clean; the commit-id check prints 167841cd3 (F2); the closing-keyword scan matches only Closes #2776 in the description and nothing in the title or the commit messages.

Findings: F1 Major; F2 to F7 Minor; F8 Nit. F1 blocks: the change removes the timeout wrapper on evidence that does not show the wrapper's HTTP/2 behaviour, and the removed code's own logic bounds an idle connection at the 5 s read deadline whatever the HTTP version.

Checked, no finding: the health check API test fails on the old from_tcp path and is bounded at 8 s; the handshake tests would fail at their 3 s deadline if the bound fell back to the 10 s default; the removed dependencies have no other user in the package and the new dev-dependencies are used; the wrapper is otherwise named only as history (module doc, issue folder, EPIC, dated coupling reports); frontmatter in-progress is an allowed status; there are no review threads, so no audit record is due.

Checks

On the loop's compute node at this head, against the merge base c2b5d96ef (receipt server-gates-kranich-626): the repository's pre-commit gate exit 0 (145 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee (offline links) exit 0; frontmatter-validator --all showed no new error against the base. Package tests at this head: cargo test -p torrust-tracker -p torrust-tracker-axum-health-check-api-server -p torrust-tracker-axum-http-server -p torrust-tracker-axum-rest-api-server -p torrust-tracker-axum-server exit 0 (87 s, 674 passed, none failed). F1 read at c2b5d96ef: custom_axum_server.rs resets its 5 s sleep only on the body-end TimerSignal::Reset (lines 189, 199, 238-242) and fails the read when the sleep elapses (line 253), with no branch on the HTTP version. GitHub checks at this head at posting time: "Package Coverage (torrust-tracker-axum-rest-api-server): queued/pending; Package Coverage (torrust-tracker-axum-http-server): queued/pending; Package Coverage (torrust-tracker-axum-server): queued/pending; Package Coverage (torrust-tracker-axum-health-check-api-server): queued/pending; Docs Lint: completed/success; Generate Coverage Report: in_progress/pending; Discover Package Coverage: completed/success; Docker E2E: completed/skipped; Workspace Packaging: queued/pending; Unit (stable): in_progress/pending; Shipped Features: queued/pending; Layer Boundary Bans: queued/pending; Unit (nightly): in_progress/pending; Documented Clippy Allows: completed/success; Build on windows-latest (stable): completed/success; Build on macos-latest (nightly): in_progress/pending; Build on ubuntu-latest (stable): completed/success; Build on ubuntu-latest (nightly): completed/success; Build on macos-latest (stable): completed/success; Build on windows-latest (nightly): completed/success; Test (Docker) (release): queued/pending". At posting, develop is 4a46f98b2.


Conclusion: the replacement is no worse than the wrapper in any measured case, so the wrapper
and its helper types were removed (AC5). The HTTP/2 idle bound is 10 s with and without the
wrapper (5 s keep-alive interval plus 5 s ping reply wait); the wrapper never shortened it, so the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Major][F1] The V8 claim that the wrapper also left an idle HTTP/2 connection open for 10 s contradicts the removed code, and the evidence cannot show otherwise.

The removed TimeoutStream::poll_read (custom_axum_server.rs at c2b5d96ef) re-arms its 5 s sleep on the Reset that TimeoutBody sends when a response body ends, then fails the next read once the sleep elapses. Nothing in it depends on the HTTP version, and TimeoutAcceptor wrapped the raw stream before version detection. On the plaintext HTTP tracker and REST API it should therefore close an HTTP/2 connection idle after a response at about 5 s, not 10 s (the TLS and health check rows had no wrapper, so 10 s fits there). The three result files are byte-identical, and V8 does not name either build by its commit subject. If the wrapper gave 5 s, AC4's own rule ("a weaker result blocks the removal in AC5") blocks the removal, and the AC4/AC5 ticks, EPIC A2 and the description's "with and without the old wrapper" would all mislead. Please rerun the four M4-h2 probes on the build with the wrapper, name that build by its subject and keep its raw output, or record why the wrapper does not fire.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid, thank you. I reran the HTTP/2 probes on the build with the wrapper, named by its commit subject, with raw output in evidence/results-with-wrapper.txt: 10.0 s on the HTTP tracker and REST API, so the wrapper did not fire for HTTP/2. The evidence now records the probable cause (poll_read handles one TimerSignal per call: Wait first, so the Reset queued by the empty response is not read until Hyper reads the idle socket again). Removal stands, but AC4 and AC5 are reopened for your ruling (see F5). Fixed in fix(axum-server): [#2776] address PR review round 1.


### V9 - Final like-for-like recheck (T9)

Build: `refactor(axum-server): [#2776] remove the TimeoutAcceptor wrapper` (commit `167841cd3`),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor][F2] This line cites the PR-branch commit 167841cd3, and so does the progress-log entry (ISSUE.md:227, "T9: final recheck on commit ..."). The fix-bug skill names PR-branch states by Conventional Commit subject only, and the open-pull-request skill's commit-id check prints PR-branch commit id: 167841cd3 at this head. Keep the subject and drop the id in both places.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 1: the commit id is dropped in the evidence and the progress log; both name the build by its subject.

- Review basis: a "Confirmed" status was read from the code at `050726d46`, not reproduced at runtime; each "Hypothesis" names the measurement that would confirm it. A3's status records the #2417 decision, whose evidence includes runtime checks (V1 to V3). The `path:line` citations resolve at `7970cdf0a`. Issue #2458 later replaced the module that created the UDP connection-ID key, so the UDP connection-ID control row names the key's creation by symbol instead of by line. [Existing Controls](#existing-controls) lists the protections each case relies on.
- A1: no rate limiter, semaphore or connection limit exists in the HTTP tracker, REST API or health check API servers; the UDP ring is not an exact bound (`packages/udp-server/src/server/request_buffer.rs:20`); `interval_min` is advertised to clients (`packages/http-protocol/src/v1/responses/announce/encoding.rs:66`) but not enforced.
- A2: the idle-connection acceptor (`packages/axum-server/src/custom_axum_server.rs:89`) is applied only to plaintext listeners (`packages/axum-http-server/src/server.rs:145`, `packages/axum-rest-api-server/src/server.rs:314`); the REST API records why TLS omits it (`packages/axum-rest-api-server/src/server.rs:464`); the health check API starts a plain server (`packages/axum-health-check-api-server/src/server.rs:154`).
- A2: all three Axum server packages build their listener through `from_tcp_with_timeouts` or `from_tcp_rustls_with_timeouts` (`packages/axum-server/src/custom_axum_server.rs:71`, `packages/axum-server/src/custom_axum_server.rs:89`), which set the first-request, header-read and HTTP/2 keep-alive timeouts and the TLS handshake timeout (`packages/axum-server/src/custom_axum_server.rs:104`); the health check API uses the same constructor (`packages/axum-health-check-api-server/src/server.rs:141`). The earlier `TimeoutAcceptor` copy of a gist, which skipped TLS and the health check API, was removed in #2776.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor][F3] The review-basis note (line 76) says the path:line citations resolve at the commit it names. This rewritten A2 note and the controls rows at lines 99 to 102 cite lines that exist only at this head: at that commit custom_axum_server.rs:116 is fn poll_ready and :54 is blank. Meanwhile the rewritten request-size row keeps query.rs:112 and scrape.rs:66, which are blank at this head and resolve only at that commit. A reader cannot resolve both sets from one basis. Either state a basis for the new citations, or cite them by symbol.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 1: the new A2 note and controls rows cite symbols (add_timeouts, from_tcp_rustls_with, Timeouts::default), not lines.

Comment thread Cargo.lock Outdated
dependencies = [
"fastrand",
"getrandom 0.4.3",
"getrandom 0.3.4",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor][F4] The chore(deps) commit's lockfile change consists of two unrelated downgrades: tempfile moves from getrandom 0.4.3 to 0.3.4 here, and winapi-util from windows-sys 0.61.2 to 0.48.0 (line 5925). axum-server was already 0.9.0 in the lock at c2b5d96ef, so "(lockfile 0.9.0)" in the description describes no change. Restore develop's resolution for these two edges, or say why they moved.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 1: the two unrelated edges (tempfile to getrandom 0.3.4, winapi-util to windows-sys 0.48.0) are restored to develop's resolution; cargo check --locked passes. The "(lockfile 0.9.0)" remark in the description is corrected too.

| AC1 | DONE | Tests `it_should_close_a_plaintext_connection_that_sends_nothing` (axum-server), `it_should_close_a_connection_that_sends_nothing` (health check API); evidence V8, V9: 5.0 s on all three listeners |
| AC2 | DONE | Test `it_should_close_a_tls_connection_that_completes_the_handshake_and_sends_nothing`; red run in `evidence/red-run.txt`; V9: TLS silent closed after 5.0 s |
| AC3 | DONE | Tests for no handshake bytes and one handshake byte; V9 M3: 10.0 s (`Timeouts::tls_handshake`); recorded in evidence "TLS handshake timeout" |
| AC4 | DONE | V8: HTTP/1 idle after response 5.0 s; HTTP/2 10.0 s, identical with and without the wrapper and already 10 s today (the 5 s of AC4 read as "no worse than today"; maintainer to confirm) |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor][F5] AC4 is ticked DONE, but its own text sets "no worse than today's plaintext 5 s", HTTP/2 measures 10 s, and the description leaves that reading to the maintainer. "Already 10 s today" was not measured either: V1 to V4 ran no HTTP/2 probe, and both V8 builds already contain the fix. Leave AC4, and AC5 which depends on it, open until the maintainer rules, and either measure "already 10 s today" or drop it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 1: AC4 and AC5 are unticked and TODO in the acceptance table, and the unmeasured "already 10 s today" claim is dropped; the evidence now says no HTTP/2 measurement of develop was made.

handshake, one-byte handshake and post-response idle tests (HTTP/1 and HTTP/2, plaintext and TLS)
already passed with `axum-server` 0.9. The health check API test, run against the old
`axum_server::from_tcp` call, failed after its 8 s bound (connection still open). With the fix
(`fix(axum-server): [#2776] close idle connections with first_request_timeout`) all of them pass.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor][F6] The fix-bug skill asks for the red command and output, and for the green output. evidence/red-run.txt records no command or toolchain, and its last line is a paraphrase ("FAILED after 8.00s (still open)"), not test output. "all of them pass" records no green run. V8 and V9 give no date, toolchain or build command. The Purpose section (lines 11 to 13) still says the final recheck is "added after implementation".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 1: red-run.txt now has the commands, toolchain and the real test output for both red states, green-run.txt has the green run, V8 and V9 give date, toolchain and build command, and the Purpose section is updated.

}

#[tokio::test]
async fn it_should_close_an_idle_http2_connection_after_a_response_over_plaintext() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor][F7] The two HTTP/2 tests named "after a response" never check that a response arrived. closed_within_deadline counts any close, so a server that rejected the hand-built frames with a protocol error would pass both (also line 291). It also discards the elapsed time it returns, so an immediate close passes every close test. Read until a HEADERS frame on stream 1 before measuring, and assert that the close comes no earlier than the injected timeout.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 1: the HTTP/2 tests read frames until a HEADERS frame on stream 1 (and fail on GOAWAY), and every close assertion now requires the close no earlier than the injected timeout (minus a 50 ms skew).

s = ctx.wrap_socket(s, server_hostname="localhost")
print(f"{label}: alpn={s.selected_alpn_protocol()}")
hdr = bytes([0x82, 0x84, 0x86, 0x01, 9]) + b"localhost"
# use /health_check path as literal? ':path /' is fine (404 is still a response)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F8] A working note was left in the probe ("use /health_check path as literal? ..."). Replace it with a statement of what the request is (GET /, answered with 404).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 1: the note is replaced by a statement that the request is GET /.

josecelano-bot and others added 2 commits November 10, 2026 21:45
Restore the unrelated Cargo.lock edges, make the HTTP/2 idle tests require a
response and a close no earlier than the injected timeout, add a drop guard,
longer test timeouts, a fixture README and doc notes, record red and green
output, and reopen AC4 and AC5 for the maintainer.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…dit and retrospective

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
da2ce7
da2ce7 previously approved these changes Nov 10, 2026

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 9d5e6ebf844c2752bbddcec8f6e7071efdf85733. Recomputed from the bytes at this head, against the previous round's head 024eb565a and the merge base c2b5d96ef; git merge-tree against develop 4a46f98b2 writes a clean tree (exit 0, no conflict; project-words.txt is the only file both sides touch).

What moved: two commits fast-forward 024eb565a (18 files, +525/-62); every other path is byte-identical to it, so the previous round's conclusions on them stand.

Previous findings: F1 is fixed. The removed TimeoutStream::poll_read takes one signal per call, so once Wait is taken the queued Reset waits for the first ping's read, and 10 s for HTTP/2 fits the code; the rerun build is named and AC4 and AC5 are open for the maintainer. F2 to F8 are fixed (F2 in the issue folder; F9 is the same slip in the audit).

The new commits: the HTTP/2 tests wait for a HEADERS frame and every close test has a lower bound; Cargo.lock differs from develop only in the package's own list; the red line numbers and test counts match their builds; the new fixtures README is accurate; the audit passes the validator's logic offline (13 rows, no failure).

Hygiene: Conventional subjects; author = committer; one co-author footer each, which no rule in the tree forbids; git diff --check reports F14.

Findings: F9 and F10 Minor; F11 to F15 Nit. None blocks.

Checked, no finding: the EPIC's symbols exist at this head and its remaining line citations resolve at its stated basis; thread states match the forge; no closing keyword in the new messages.

Checks

On the loop's compute node at this head, against the merge base c2b5d96ef (receipt server-gates-kranich-664): the repository's pre-commit gate exit 0 (69 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee (offline links) exit 0; the repository's audit validator on pr-2813-review exit 0 (13 rows, no failures). Package tests at this head: cargo test -p torrust-tracker -p torrust-tracker-axum-health-check-api-server -p torrust-tracker-axum-http-server -p torrust-tracker-axum-rest-api-server -p torrust-tracker-axum-server exit 0 (75 s, 674 passed, none failed). F14 read at this head: git diff --check 024eb565a 9d5e6ebf8 reports run-probes.sh:28: new blank line at EOF. GitHub checks at this head at posting time: "". At posting, develop is 4a46f98b2.


## Findings

Round 1: Copilot review 5846895000 (lite review: the review body reports that the full agentic review timed out; five inline findings) and da2ce7 review 5846910258 (CHANGES_REQUESTED, eight findings) on the head `024eb565a`. All thirteen are valid and fixed in one batch. Thread state is OPEN for all: the maintainer or reviewer resolves them (the bot resolveReviewThread mutation was not attempted, as it was denied in earlier audits).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor][F9] The audit cites PR-branch commit ids: this line names the reviewed head 024eb565a, and line 137 quotes the refactor commit's id in its verification command.

The open-pull-request commit-id check, run verbatim at this head, prints both, and the audit's own Completion Rules forbid a branch SHA. Name the head by its last commit's subject, and state line 137's check as "the commit-id check prints nothing for the issue folder".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 2: the audit names the reviewed head by the subject of its last commit and states the check as "the commit-id check prints nothing for the issue folder".


## Processing Log

- 2026-11-10 21:50 UTC - Round 1 processed: thirteen findings, all fixed in one batch, all threads replied; threads left OPEN. The audit and the review retrospective go in the same push as the fixes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor][F10] This entry is stamped 21:50 UTC (line 4 matches), later than the commit that carries it (9d5e6eb, 21:46:13Z), so it is neither a git nor a forge time.

The replies it records were posted from 21:36:25Z to 21:36:53Z, while the head was still 024eb565a; the commit they cite as the fix, 8dfb1b3, was made at 21:45:32Z. process-pr-review asks for stamps from git log, command output or the forge's created_at, and for nothing written ahead of the event. Take the stamp from the replies, say they preceded the push, and drop the last sentence, which describes a push still to come.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 2: the entry is stamped from the replies (21:36 UTC), says they preceded the push, and the last sentence is dropped.

- 2026-11-06 18:45 UTC - Claude Code (Claude Sonnet 5.5) - Maintainer approved the draft; created issue #2776 and moved the spec to `open/`.
- 2026-11-06 21:10 UTC - Claude Code (Claude Sonnet 5.5) - Answered the Copilot review on PR #2777: ran the baseline reproduction (Reproduced for TLS and the health check API; plaintext HTTP tracker and REST API close at 5 s), added the evidence file, required `"0.9"` in five manifests, added stalled-handshake and post-response regression tests, a final recheck task (T9), with/without-wrapper comparison for HTTP/1 and HTTP/2, and split M5. - [evidence](manual-verification-evidence.md)
- 2026-11-10 17:30 UTC - Claude Code (Claude Sonnet 5.5) - Implemented. T2: `axum-server` 0.9.0 required in five manifests (no source change needed; the tracker does not wrap a TLS acceptor, so `TlsService` did not matter). T3/T4: `custom_axum_server::Timeouts` (injectable) with `from_tcp_with`/`from_tcp_rustls_with`; `first_request_timeout` applied in the shared constructor path, and the health check API now uses it; red run recorded, tests green. Checkpoint after the plaintext HTTP slice: the design held for all listeners without change. T5: with/without-wrapper comparison identical for HTTP/1 and HTTP/2, so `TimeoutAcceptor`, `TimeoutStream`, `TimeoutService`, `TimeoutBody` were removed (no ADR: the replacement is the upstream feature and the behaviour is recorded in the EPIC controls). T6 decision: the values stay constants in `Timeouts::default` (5 s first request, header read and HTTP/2 keep-alive; 10 s TLS handshake), injectable in code for tests, not configuration keys, because nothing in the evidence asks operators to tune them; revisit under EPIC #2411 case A1. Known limitations: the server closes without `408`; HTTP/2 idle bound is 10 s; a client that answers HTTP/2 pings is not time-bounded. T7: EPIC case A2 and controls updated. T9: final recheck on `refactor(axum-server): [#2776] remove the TimeoutAcceptor wrapper`. T8 is the maintainer's. No retrospective needed: no discovery changed the design beyond the HTTP/2 measurement already recorded in the evidence. - [evidence](manual-verification-evidence.md)
- 2026-11-10 21:40 UTC - Claude Code (Claude Sonnet 5.5) - Review round 1 (PR 2813: Copilot lite review and da2ce7, 14 findings). F1: reran the HTTP/2 probes with the wrapper; the wrapper does not shorten idle HTTP/2 (10.0 s, probable cause in the evidence), so the removal stands, but AC4 and AC5 are reopened (F5) for the maintainer's ruling and the unmeasured "already 10 s on develop" claim is dropped. Also: lockfile restored to develop's resolution for the two unrelated edges (F4), citations by symbol in the EPIC (F3), commit ids dropped (F2), red and green output with commands recorded (F6), HTTP/2 tests now require a response and a close no earlier than the injected timeout (F7), probe note replaced (F8), plus the Copilot suggestions (probe script trap, drop guard in the health check test, longer test timeouts, fixture README, doc note on `from_tcp_with_timeouts`). Audit: `docs/pr-reviews/pr-2813-review/PR-REVIEW.md`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F11] "14 findings": round 1 had thirteen (five from the bot review, eight from this account's), as the audit, the description and the thirteen threads say.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 2: "13 findings".

- Review basis: a "Confirmed" status was read from the code at `050726d46`, not reproduced at runtime; each "Hypothesis" names the measurement that would confirm it. A3's status records the #2417 decision, whose evidence includes runtime checks (V1 to V3). The `path:line` citations resolve at `7970cdf0a`. Issue #2458 later replaced the module that created the UDP connection-ID key, so the UDP connection-ID control row names the key's creation by symbol instead of by line. [Existing Controls](#existing-controls) lists the protections each case relies on.
- A1: no rate limiter, semaphore or connection limit exists in the HTTP tracker, REST API or health check API servers; the UDP ring is not an exact bound (`packages/udp-server/src/server/request_buffer.rs:20`); `interval_min` is advertised to clients (`packages/http-protocol/src/v1/responses/announce/encoding.rs:66`) but not enforced.
- A2: the idle-connection acceptor (`packages/axum-server/src/custom_axum_server.rs:89`) is applied only to plaintext listeners (`packages/axum-http-server/src/server.rs:145`, `packages/axum-rest-api-server/src/server.rs:314`); the REST API records why TLS omits it (`packages/axum-rest-api-server/src/server.rs:464`); the health check API starts a plain server (`packages/axum-health-check-api-server/src/server.rs:154`).
- A2 (cited by symbol, as the code stands after #2776): all three Axum server packages build their listener through `from_tcp_with_timeouts` or `from_tcp_rustls_with_timeouts` in `packages/axum-server/src/custom_axum_server.rs`, which call `add_timeouts` to set the first-request, header-read and HTTP/2 keep-alive timeouts and the TLS handshake timeout from `Timeouts`; the health check API uses the same constructor (`start_with_cancellation` in `packages/axum-health-check-api-server/src/server.rs`). The earlier `TimeoutAcceptor` copy of a gist, which skipped TLS and the health check API, was removed in #2776.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F12] add_timeouts does not set the TLS handshake timeout: from_tcp_rustls_with sets it on the RustlsAcceptor before calling add_timeouts, as the TLS handshake row (line 102) says. Name from_tcp_rustls_with for the handshake bound here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 2: the EPIC note now says from_tcp_rustls_with sets the handshake timeout on the RustlsAcceptor.

$ cargo test -p torrust-tracker-axum-server -p torrust-tracker-axum-http-server -p torrust-tracker-axum-rest-api-server -p torrust-tracker-axum-health-check-api-server
Running unittests src/lib.rs (target/debug/deps/torrust_tracker_axum_health_check_api_server-030f078435c366e1)
test server::tests::it_should_close_a_connection_that_sends_nothing ... ok
test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.00s

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F13] The file reads as raw output under its $ cargo test line, but it is an excerpt: this binary reports 17 passed with one test line printed, and the last eight result lines have no target header. Say it is filtered and by what, or keep the full output.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 2: the file now has a header that says it is filtered, and by what, and the full target headers.

python3 -I "$probe_h2" M4-h2-http-tls 27171 tls
python3 -I "$probe_h2" M4-h2-health-plain 21313 plain
python3 -I "$probe_h2" M4-h2-rest-plain 21212 plain

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F14] Removing the final kill left a blank line at the end of the file; git diff --check 024eb565a at this head reports "new blank line at EOF" here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 2: the blank line at the end of the file is removed.


HTTP/2 and the wrapper (review F1): the wrapper did not shorten an idle HTTP/2 connection on the
plaintext listeners; the rerun with the wrapper still gives 10.0 s for the HTTP tracker and REST
API. Probable cause, read from the removed code and not separately tested: `TimeoutStream::poll_read`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F15] Outside the diff, the description says the wrapper "never fired for HTTP/2". This paragraph gives a probable, untested cause, and by it the first ping's read takes Reset and re-arms the 5 s sleep, which then runs out with the keep-alive close. "Did not shorten", as here, is what the runs show; say that in the description.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. The pull request description now says the wrapper "did not shorten" idle HTTP/2, which is what the runs show, and keeps the cause as probable.

@da2ce7

da2ce7 commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

ACK 9d5e6eb — F1 to F8 recomputed as fixed at this head against the removed wrapper code, the lockfile, the tests and the audit record

@josecelano

Copy link
Copy Markdown
Member

ACK 9d5e6eb

…tick AC4 and AC5

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at b10f168001ac3447b596cc5a02731ca97ad844c5. Recomputed from the bytes at this head, against the previous round's head 9d5e6ebf8 and the merge base c2b5d96ef; git merge-tree against develop e3dfd7275 conflicts (exit 1, five hunks) in the three Axum server.rs files, where develop removed the legacy Halted start paths this branch edits (F18).

What moved: one commit, b10f168, fast-forwards 9d5e6ebf8 (2 files, +7/-6); every other path is byte-identical to it, so the previous round's conclusions on them stand.

Previous findings: F5 is partly reopened. AC4 and AC5 are now ticked on a recorded ruling, and the reworded AC4 brings back a comparison with develop that was not measured (F16). F1 to F4 and F6 to F8 stay fixed; F9 to F15 are still open, their bytes and the description unchanged.

The new commit: AC4's figures match Timeouts::default and V8, the AC5 row names the refactor by subject, and EPIC case A1 is the connection-limit case it cites. The ruling has no source on the pull request (F17), the evidence still quotes the old AC4 (F19), and the new stamps are later than their commit (F20).

Hygiene: Conventional subject, no body; author = committer; one co-author footer naming an AI identity, which no rule in the tree forbids; git diff --check 9d5e6ebf8 is clean; no closing keyword.

Findings: F16 to F18 Minor; F19 and F20 Nit. The content findings do not block, but the forge reports this head as conflicting with develop (F18), so this round is a comment without an ACK; the update against develop gets the next round.

Checked, no finding: the commit-id check prints nothing for the issue folder; the audit is unchanged and passes the validator's logic offline; the round-2 threads have no replies, so no audit update is due; develop touches neither the issue folder, the EPIC nor the audit.

Checks

On the loop's compute node at this head, against the merge base c2b5d96ef (receipt server-gates-kranich-668): the repository's pre-commit gate exit 0 (62 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee (offline links) exit 0; the repository's audit validator on pr-2813-review exit 0 (13 rows, no failures). This push changes documentation only; the code is byte-identical to the previous round's head. F18 read at this head: git merge-tree --write-tree b10f16800 develop reports content conflicts in packages/axum-health-check-api-server/src/server.rs, packages/axum-http-server/src/server.rs and packages/axum-rest-api-server/src/server.rs, and the forge reports the pull request as conflicting. GitHub checks at this head at posting time: "". At posting, develop is e3dfd7275.

- [x] AC1: A client that connects to the HTTP tracker, REST API or health check API over plaintext and sends nothing is disconnected within the configured first-request timeout.
- [x] AC2: The same holds for TLS connections of the HTTP tracker and REST API after the handshake completes.
- [x] AC3: A slow or stalled TLS handshake is bounded, and the bound is recorded in the documentation.
- [x] AC4: An idle persistent connection after a response is closed in bounded time, no worse than before the change, measured on the replacement build: HTTP/1 after 5 s, HTTP/2 after about 10 s (5 s keep-alive interval plus 5 s ping reply wait). The maintainer accepted the HTTP/2 figure on 2026-11-11; a client that answers pings is not time-bounded (EPIC #2411 case A1).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor][F16] The reworded AC4 says "no worse than before the change", and the evidence names that build: "No measurement of develop (the build before this change) was made for HTTP/2" (manual-verification-evidence.md:133).

What was measured is V8, against the build with the wrapper, whose plaintext listeners differ from the merge base's only by the first-request timeout; at the merge base the health check API set no HTTP/2 keep-alive at all. So the claim probably holds, but it is not what was measured, which is the substance of F5. Say "no worse than with the wrapper (V8)". M4's expected result (line 263) still reads "no worse than 5 s, on both builds and both protocols" and is DONE; give it AC4's figures.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 2: AC4 reads "no worse than with the wrapper (V8)" and M4's expected result gives AC4's figures.

- 2026-11-06 21:10 UTC - Claude Code (Claude Sonnet 5.5) - Answered the Copilot review on PR #2777: ran the baseline reproduction (Reproduced for TLS and the health check API; plaintext HTTP tracker and REST API close at 5 s), added the evidence file, required `"0.9"` in five manifests, added stalled-handshake and post-response regression tests, a final recheck task (T9), with/without-wrapper comparison for HTTP/1 and HTTP/2, and split M5. - [evidence](manual-verification-evidence.md)
- 2026-11-10 17:30 UTC - Claude Code (Claude Sonnet 5.5) - Implemented. T2: `axum-server` 0.9.0 required in five manifests (no source change needed; the tracker does not wrap a TLS acceptor, so `TlsService` did not matter). T3/T4: `custom_axum_server::Timeouts` (injectable) with `from_tcp_with`/`from_tcp_rustls_with`; `first_request_timeout` applied in the shared constructor path, and the health check API now uses it; red run recorded, tests green. Checkpoint after the plaintext HTTP slice: the design held for all listeners without change. T5: with/without-wrapper comparison identical for HTTP/1 and HTTP/2, so `TimeoutAcceptor`, `TimeoutStream`, `TimeoutService`, `TimeoutBody` were removed (no ADR: the replacement is the upstream feature and the behaviour is recorded in the EPIC controls). T6 decision: the values stay constants in `Timeouts::default` (5 s first request, header read and HTTP/2 keep-alive; 10 s TLS handshake), injectable in code for tests, not configuration keys, because nothing in the evidence asks operators to tune them; revisit under EPIC #2411 case A1. Known limitations: the server closes without `408`; HTTP/2 idle bound is 10 s; a client that answers HTTP/2 pings is not time-bounded. T7: EPIC case A2 and controls updated. T9: final recheck on `refactor(axum-server): [#2776] remove the TimeoutAcceptor wrapper`. T8 is the maintainer's. No retrospective needed: no discovery changed the design beyond the HTTP/2 measurement already recorded in the evidence. - [evidence](manual-verification-evidence.md)
- 2026-11-10 21:40 UTC - Claude Code (Claude Sonnet 5.5) - Review round 1 (PR 2813: Copilot lite review and da2ce7, 14 findings). F1: reran the HTTP/2 probes with the wrapper; the wrapper does not shorten idle HTTP/2 (10.0 s, probable cause in the evidence), so the removal stands, but AC4 and AC5 are reopened (F5) for the maintainer's ruling and the unmeasured "already 10 s on develop" claim is dropped. Also: lockfile restored to develop's resolution for the two unrelated edges (F4), citations by symbol in the EPIC (F3), commit ids dropped (F2), red and green output with commands recorded (F6), HTTP/2 tests now require a response and a close no earlier than the injected timeout (F7), probe note replaced (F8), plus the Copilot suggestions (probe script trap, drop guard in the health check test, longer test timeouts, fixture README, doc note on `from_tcp_with_timeouts`). Audit: `docs/pr-reviews/pr-2813-review/PR-REVIEW.md`.
- 2026-11-11 09:00 UTC - Claude Code (Claude Sonnet 5.5) - Maintainer ruling on AC4: an idle HTTP/2 connection closed after about 10 s is accepted (the extra 5 s changes the cost of a descriptor-exhaustion attack little; the real bound is a connection limit, EPIC #2411 case A1). AC4 reworded to match what ships, AC4 and AC5 ticked.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor][F17] This entry records a ruling, with reasons, that nothing on this pull request carries: the maintainer's only statement here is a bare ACK of 9d5e6ebf8 (2026-11-11 07:04:01Z), and the reasons in parentheses appear in no thread or comment.

AC4 and its table row rest on this entry. Link the comment that gives the ruling, or say that the ACK is taken as the ruling and drop the reasons it does not give. The description still says AC4 and AC5 "are open for your ruling".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 2: the entry says the maintainer's ACK on the pull request is taken as the ruling, and labels the rationale as the author's recommendation, not a quotation. The description no longer says AC4 and AC5 are open.

)]
use torrust_server_lib::signals::{Halted, Started};
use torrust_tracker_axum_server::custom_axum_server::{self, TimeoutAcceptor};
use torrust_tracker_axum_server::custom_axum_server;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor][F18] The branch no longer merges: git merge-tree --write-tree against develop e3dfd7275 conflicts here and in the HTTP tracker and health check API server.rs (five hunks, exit 1).

develop removed the legacy Halted start paths that this branch edits (refactor(axum-servers): [#2801] remove the legacy Halted shutdown API). The resolution is forced: take the removals and keep this import without TimeoutAcceptor. The token-aware paths merge cleanly, and no use of the wrapper survives outside the conflicts. open-pull-request requires a rebase when the branch conflicts, and the rebased head needs its own look.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed by merging develop into the branch (resolution taken as you describe: the removals kept, the import without TimeoutAcceptor). The merge is in the head you reviewed after this thread.

closes at 5 s as measured.

The HTTP/2 idle bound is therefore about 10 s (5 s ping interval plus 5 s reply wait) with and
without the wrapper. The maintainer ruled on 2026-11-11 that about 10 s for HTTP/2 is accepted (AC4). Context: whether that satisfies AC4 ("no worse than today's plaintext 5 s") was for the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F19] This sentence quotes AC4 as "no worse than today's plaintext 5 s", wording the same commit removed, and the next line's "the 5 s figure in AC4 is not met for HTTP/2" is no longer true of AC4, which now sets about 10 s for HTTP/2. Put the paragraph in the past tense, or drop the quote.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 2: the paragraph is rewritten in the past tense, without the old AC4 wording.

branch: "2776-axum-server-0-9-timeouts-spec"
related-pr: null
last-updated-utc: "2026-11-06 21:10"
last-updated-utc: "2026-11-11 09:00"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F20] last-updated-utc and the new log entry (line 229) are stamped 09:00 UTC, later than the commit that carries them (b10f168, 08:53:38Z) and about two hours after the ACK the entry reports (07:04:01Z). Use the commit's or the ruling's time.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 2: the stamps use the commit's time (08:53 UTC).

josecelano-bot and others added 2 commits November 11, 2026 09:21
…after the timeout fix

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…0-9-timeouts

# Conflicts:
#	packages/axum-health-check-api-server/src/server.rs
#	packages/axum-http-server/src/server.rs
#	packages/axum-rest-api-server/src/server.rs
#	packages/axum-server/Cargo.toml
#	packages/axum-server/README.md

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at bfb10740d5a0f52fe727ad009107c3e1fa9bc3d4. Recomputed from the bytes at this head, against the previous round's head b10f16800 and the merge base c2b5d96ef; git merge-tree against develop e3dfd7275 exits 1 with content conflicts in five files: the three Axum server.rs files, as before, and now this package's Cargo.toml and README.md (F22).

What moved: one commit, bfb1074, fast-forwards b10f16800 (2 files, +21/-4): the axum-server README.md and the description in its Cargo.toml. The other 2463 paths are byte-identical, so the previous round's conclusions on them stand.

Previous findings: none changed state. F1 to F4 and F6 to F8 stay fixed, and F5 stays partly fixed; F9 to F17, F19 and F20 are still open, bytes and description unchanged. F18 is still open, and the new commit adds two files to it (F22).

The new commit: the module list matches lib.rs; all three servers build their listeners through from_tcp_with_timeouts or from_tcp_rustls_with_timeouts, and only the tests call from_tcp_with and from_tcp_rustls_with; the 5 s and 10 s figures match Timeouts::default; the HTTP/1 bound matches the EPIC row and the tests; the baseline measured the health check API on axum_server::from_tcp still open after 25 s. The HTTP/2 sentence drops the condition every other record carries (F21).

Hygiene: Conventional subject; no body, which the diff does not need; author = committer; one co-author footer naming an AI identity, which no rule in the tree forbids; no closing keyword; git diff --check b10f16800 is clean.

Findings: F21 Major, F22 Minor. F21 misstates the code's HTTP/2 bound, so this round requests changes; the rebase onto develop (F18, F22) is due before merge.

Checked, no finding: the commit-id check prints only the two ids F9 names; the audit is unchanged and passes the validator's logic offline; no thread has a new reply, so no audit update is due; repository Markdown may be hard-wrapped (MD013 off).

Checks

On the loop's compute node at this head, against the merge base c2b5d96ef (receipt server-gates-kranich-670): the repository's pre-commit gate exit 0 (46 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee (offline links) exit 0; the repository's audit validator on pr-2813-review exit 0 (13 rows, no failures). This push changes the package README and the description in its Cargo.toml only. F21 read at this head: add_timeouts in custom_axum_server.rs (lines 109-121) sets for HTTP/2 only keep_alive_interval and keep_alive_timeout, so the close depends on an unanswered ping, while README.md:13 states a bound of about 10 s for every idle HTTP/2 connection. The forge reports the pull request as conflicting with develop. GitHub checks at this head at posting time: "". At posting, develop is 8c24b0722.

Comment thread packages/axum-server/README.md Outdated
`from_tcp_rustls_with_timeouts` apply them. They rely on `axum-server` 0.9, including
`Server::first_request_timeout`. A connection that sends no complete first request is closed after
5 s, for plaintext and TLS (after the handshake). An idle connection after a response is closed
after 5 s over HTTP/1 and about 10 s over HTTP/2, and a TLS handshake that does not complete is

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Major][F21] The HTTP/2 half of this sentence is not what the code does. add_timeouts sets only the HTTP/2 keep-alive: the server pings after 5 s of silence and closes the connection when no acknowledgement arrives within 5 s. A client that acknowledges the ping keeps an idle HTTP/2 connection open without bound, and RFC 9113 (section 6.7) requires every peer to acknowledge, so any conforming HTTP/2 client does.

The tests (idle_connections.rs:175-176 and :322) and the probe (probe-h2.py:2) use a client that never acknowledges pings, and every other record states the condition: AC4 (ISSUE.md:236), the known limitations (ISSUE.md:227), the evidence (manual-verification-evidence.md:131) and the EPIC controls row (EPIC.md:101). Read with line 19 ("so they get the same timeouts"), the README promises a bound on every idle connection. Say "and about 10 s over HTTP/2 when the client does not answer the server's pings; a client that answers them is not time-bounded (EPIC case A1)".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 2: the README says "about 10 s over HTTP/2 when the client does not answer the server's keep-alive pings; a client that answers them is not time-bounded (EPIC #2411 case A1)".

Comment thread packages/axum-server/README.md Outdated
# Torrust Tracker Axum Server

A wrapper for the Axum server used by Torrust tracker HTTP services to add timeouts.
Shared Axum server infrastructure for the Torrust tracker HTTP services: the listener constructors

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor][F22] This rewrite conflicts with develop e3dfd7275: git merge-tree --write-tree now reports content conflicts in this file and in this package's Cargo.toml, besides the three server.rs files of F18.

develop rewrote the same introduction in docs(axum-server): update the README and crates.io metadata and added a "Main API" section on the same three modules as "What it provides" here. In Cargo.toml it replaced the keywords (this branch keeps wrapper beside a description that no longer says wrapper) and removed documentation.workspace. Unlike F18, the resolution is not forced: the two introductions and module lists have to become one, with F21's correction in whichever text survives.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed by the merge of develop (the two introductions and module lists are one text now), with the F21 correction in the surviving text.

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 29beae749b367f78d2f669a4e43be0599b71ecc5. Recomputed from the bytes at this head, against the previous round's head bfb10740d and the merge base e3dfd7275; git merge-tree against develop 8c24b0722 writes a clean tree (exit 0; no path is touched by both sides since e3dfd7275).

What moved: one branch commit, 29beae7, which merges develop e3dfd7275 into bfb10740d (a fast-forward, no rewrite); the other 156 are develop's. Every path outside the 108 changed files is byte-identical to bfb10740d. Outside the five conflicted files, the tree equals git's own merge.

Previous findings: F18 and F22 are fixed: the merge resolves all five conflicts. F21 is still open: the merge carries the README's HTTP/2 sentence into develop's layout unchanged. The merge (09:33:53Z) predates that comment (09:36:41Z). F5 stays partly fixed, and F9 to F17, F19 and F20 stay open on byte-identical files.

The new commit: the three server.rs files take develop's removal of the Halted paths and keep custom_axum_server without TimeoutAcceptor. Against e3dfd7275, each differs only by this branch's change. All five listeners call from_tcp_with_timeouts or from_tcp_rustls_with_timeouts. Cargo.toml keeps this branch's description and takes develop's categories and keywords. Cargo.lock matches the four Axum manifests and differs from develop only in this package's list.

Hygiene: git's default merge subject, a form develop already carries and the rebase ADR accepts for a conflicting branch; the body lists the five conflicted files; author = committer; no footer lines; no closing keyword; git diff --check bfb10740d is clean.

Findings: none new. F21 (Major) still blocks, so this round requests changes.

Checked, no finding: the commit-id check prints only F9's two ids; the audit is unchanged and passes the validator's logic offline; no thread has a reply since round 1; README line 3's "wrapper" describes the whole crate.

Checks

On the loop's compute node at this head, against the merge base e3dfd7275 (receipt server-gates-kranich-674): the repository's pre-commit gate exit 0 (262 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee (offline links) exit 0; the repository's audit validator on pr-2813-review exit 0 (13 rows, no failures). Package tests at this head: cargo test -p torrust-tracker -p torrust-tracker-axum-health-check-api-server -p torrust-tracker-axum-http-server -p torrust-tracker-axum-rest-api-server -p torrust-tracker-axum-server exit 0 (127 s, 660 passed, none failed). F21 read at this head: custom_axum_server.rs:114-118 sets only the HTTP/2 keep-alive interval and timeout, and README.md still states about 10 s for an idle HTTP/2 connection. GitHub checks at this head at posting time: "Package Coverage (torrust-tracker-axum-http-server): in_progress/pending; Package Coverage (torrust-tracker-axum-rest-api-server): queued/pending; Package Coverage (torrust-tracker-axum-health-check-api-server): queued/pending; Package Coverage (torrust-tracker-axum-server): in_progress/pending; Test (Docker) (release): queued/pending; Build on macos-latest (stable): in_progress/pending; Build on ubuntu-latest (nightly): in_progress/pending; Build on windows-latest (nightly): in_progress/pending; Build on macos-latest (nightly): in_progress/pending; Build on ubuntu-latest (stable): completed/success; Build on windows-latest (stable): in_progress/pending; Docs Lint: completed/success; Docker E2E: completed/skipped; Unit (nightly): in_progress/pending; Documented Clippy Allows: completed/success; Shipped Features: completed/success; Workspace Packaging: completed/success; Unit (stable): in_progress/pending; Layer Boundary Bans: completed/success; Discover Package Coverage: completed/success; Generate Coverage Report: in_progress/pending". At posting, develop is 8c24b0722.

Comment thread packages/axum-server/README.md Outdated
`custom_axum_server` wraps the server with timeouts, `signals` handles graceful shutdown and `tls` loads the TLS configuration.
`custom_axum_server` builds the listeners with the connection timeouts (`Timeouts`, `from_tcp_with_timeouts`, `from_tcp_rustls_with_timeouts`), `signals` handles graceful shutdown and `tls` loads the TLS configuration.

The timeouts use `axum-server` 0.9. A connection that sends no complete first request is closed after 5 s, for plaintext and TLS (after the handshake). An idle connection after a response is closed after 5 s over HTTP/1 and about 10 s over HTTP/2, and a TLS handshake that does not complete is closed after 10 s. The server closes the connection without a `408`. The values are constants; `from_tcp_with` and `from_tcp_rustls_with` accept others, for tests.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Major][F21] Still open at this head. The earlier thread shows as outdated only because the merge moved this sentence.

"About 10 s over HTTP/2" holds only for a client that leaves the server's keep-alive ping unanswered. add_timeouts (custom_axum_server.rs:114-118) sets only the HTTP/2 keep-alive, so a client that answers the ping keeps an idle HTTP/2 connection open with no bound. AC4, the known limitations, the evidence and the EPIC row all state this condition. Add it here, for example: "and about 10 s over HTTP/2 when the client does not answer the server's pings; a client that answers them is not time-bounded (EPIC case A1)".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the thread above: fixed in fix(axum-server): [#2776] address PR review round 2.

…ns without a 408

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at deda2c25a6081220657247da259739d41129016e. Recomputed from the bytes at this head, against the previous round's head 29beae749 and the merge base e3dfd7275; git merge-tree against develop 8c24b0722 writes a clean tree (exit 0; no path is touched by both sides since e3dfd7275).

What moved: one commit, deda2c2, on top of 29beae749 (a fast-forward, no rewrite). It adds a package-local ADR on closing idle connections without a 408, with the collection's README and index, and links it from the package README, the EPIC and the spec. Every path outside its six files is byte-identical to 29beae749.

Previous findings: F21 is still open: the commit adds only the ADR link to the README's sentence and leaves the HTTP/2 clause as it was. F20 is still open, and the commit repeats its stamp slip (F25). The rest keep their state, on byte-identical files.

The new commit: the links resolve. The ADR's claims about the code hold: first_request_timeout at custom_axum_server.rs:121, the 408 from the per-request TimeoutLayer (HandleErrorLayer, routes.rs:160 and :156 in the two packages), and the wrapper's removal. The collection has its README and index, and the root index has no copy of the row. The claims about the reproduction repository point outside the tree and were not recomputed.

Hygiene: a Conventional subject; no body, which the commit skill makes optional; author = committer; one footer line, which no rule in the tree forbids; no closing keyword; git diff --check 29beae749 is clean.

Findings: F23 and F24 (Minor), F25 and F26 (Nit), inline. F21 (Major) still blocks, so this round requests changes.

Checked, no finding: the commit-id check prints only F9's two ids; the audit is unchanged and passes the validator's logic offline; no thread has a reply since round 1.

Checks

On the loop's compute node at this head, against the merge base e3dfd7275 (receipt server-gates-kranich-679): the repository's pre-commit gate exit 0 (112 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee (offline links) exit 0; the repository's audit validator on pr-2813-review exit 0 (13 rows, no failures). This push changes documentation only; the package tests of round 5 (660 passed) stand for the unchanged code. F23 read at this head: docs/adrs/20260830124000_place_adrs_by_decision_scope.md:48-51 requires root placement for decisions about protocol behavior; F21: README.md:13 still reads "about 10 s over HTTP/2". GitHub checks at this head at posting time: "Package Coverage (torrust-tracker-axum-http-server): in_progress/pending; Package Coverage (torrust-tracker-axum-server): completed/success; Package Coverage (torrust-tracker-axum-health-check-api-server): in_progress/pending; Package Coverage (torrust-tracker-axum-rest-api-server): in_progress/pending; Test (Docker) (release): queued/pending; Build on windows-latest (stable): in_progress/pending; Build on ubuntu-latest (nightly): in_progress/pending; Build on macos-latest (nightly): completed/success; Build on windows-latest (nightly): in_progress/pending; Build on ubuntu-latest (stable): completed/success; Generate Coverage Report: in_progress/pending; Build on macos-latest (stable): completed/success; Discover Package Coverage: completed/success; Docs Lint: completed/success; Docker E2E: completed/skipped; Workspace Packaging: completed/success; Layer Boundary Bans: completed/success; Unit (nightly): in_progress/pending; Unit (stable): in_progress/pending; Documented Clippy Allows: completed/success; Shipped Features: completed/success". At posting, develop is 8c24b0722.

Comment thread packages/axum-server/README.md Outdated
`custom_axum_server` wraps the server with timeouts, `signals` handles graceful shutdown and `tls` loads the TLS configuration.
`custom_axum_server` builds the listeners with the connection timeouts (`Timeouts`, `from_tcp_with_timeouts`, `from_tcp_rustls_with_timeouts`), `signals` handles graceful shutdown and `tls` loads the TLS configuration.

The timeouts use `axum-server` 0.9. A connection that sends no complete first request is closed after 5 s, for plaintext and TLS (after the handshake). An idle connection after a response is closed after 5 s over HTTP/1 and about 10 s over HTTP/2, and a TLS handshake that does not complete is closed after 10 s. The server closes the connection without a `408` ([ADR](docs/adrs/20261111095222_close_idle_connections_without_a_408_response.md)). The values are constants; `from_tcp_with` and `from_tcp_rustls_with` accept others, for tests.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Major][F21] Still open at this head. The earlier thread shows as outdated because this commit edited the line, but it added only the ADR link and left the HTTP/2 clause as it was.

add_timeouts (custom_axum_server.rs:114-118) sets only the HTTP/2 keep-alive, so "about 10 s over HTTP/2" holds only for a client that leaves the server's ping unanswered. A client that answers keeps an idle HTTP/2 connection open without bound, as AC4 (ISSUE.md:237), the EPIC row (EPIC.md:101) and the evidence say. Add the condition, for example: "and about 10 s over HTTP/2 when the client does not answer the server's pings; a client that answers them is not time-bounded (EPIC case A1)".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the earlier F21 threads: fixed in fix(axum-server): [#2776] address PR review round 2, with the condition stated on the line.


Package-local. The behaviour belongs to the listener constructors in `packages/axum-server`
(`custom_axum_server`), which the HTTP tracker, REST API and health check API packages only call.
It is not shared configuration or an inter-package contract, so the ADR lives in

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor][F23] The placement ADR requires root placement for decisions about "protocol behavior", "even if the implementation change initially touches one package" (docs/adrs/20260830124000_place_adrs_by_decision_scope.md:48-51). This Scope tests only shared configuration and inter-package contracts.

Whether the HTTP tracker, the REST API and the health check API answer 408 before closing is HTTP behaviour of three servers. The reasons also rest on facts outside this package: the tracker's BitTorrent clients (line 49), a reason that does not cover the REST API or the health check API, and the TimeoutLayer of two other packages (line 54).

Move the ADR to docs/adrs/ with a root index row, or state here why the decision is not protocol behaviour. Settle this before merge: a merged local ADR is kept and superseded, not moved (:73-76). If it stays local, link the collection from the package README (:65-66), as udp-server and udp-core do.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid, thank you: I had read the placement ADR too narrowly. Fixed in fix(axum-server): [#2776] address PR review round 2: the ADR moved to docs/adrs/ with a root index row, its Scope now says protocol behaviour and the root clippy.toml, and the package-local collection I had created is removed.

- 2026-11-10 17:30 UTC - Claude Code (Claude Sonnet 5.5) - Implemented. T2: `axum-server` 0.9.0 required in five manifests (no source change needed; the tracker does not wrap a TLS acceptor, so `TlsService` did not matter). T3/T4: `custom_axum_server::Timeouts` (injectable) with `from_tcp_with`/`from_tcp_rustls_with`; `first_request_timeout` applied in the shared constructor path, and the health check API now uses it; red run recorded, tests green. Checkpoint after the plaintext HTTP slice: the design held for all listeners without change. T5: with/without-wrapper comparison identical for HTTP/1 and HTTP/2, so `TimeoutAcceptor`, `TimeoutStream`, `TimeoutService`, `TimeoutBody` were removed (no ADR: the replacement is the upstream feature and the behaviour is recorded in the EPIC controls). T6 decision: the values stay constants in `Timeouts::default` (5 s first request, header read and HTTP/2 keep-alive; 10 s TLS handshake), injectable in code for tests, not configuration keys, because nothing in the evidence asks operators to tune them; revisit under EPIC #2411 case A1. Known limitations: the server closes without `408`; HTTP/2 idle bound is 10 s; a client that answers HTTP/2 pings is not time-bounded. T7: EPIC case A2 and controls updated. T9: final recheck on `refactor(axum-server): [#2776] remove the TimeoutAcceptor wrapper`. T8 is the maintainer's. No retrospective needed: no discovery changed the design beyond the HTTP/2 measurement already recorded in the evidence. - [evidence](manual-verification-evidence.md)
- 2026-11-10 21:40 UTC - Claude Code (Claude Sonnet 5.5) - Review round 1 (PR 2813: Copilot lite review and da2ce7, 14 findings). F1: reran the HTTP/2 probes with the wrapper; the wrapper does not shorten idle HTTP/2 (10.0 s, probable cause in the evidence), so the removal stands, but AC4 and AC5 are reopened (F5) for the maintainer's ruling and the unmeasured "already 10 s on develop" claim is dropped. Also: lockfile restored to develop's resolution for the two unrelated edges (F4), citations by symbol in the EPIC (F3), commit ids dropped (F2), red and green output with commands recorded (F6), HTTP/2 tests now require a response and a close no earlier than the injected timeout (F7), probe note replaced (F8), plus the Copilot suggestions (probe script trap, drop guard in the health check test, longer test timeouts, fixture README, doc note on `from_tcp_with_timeouts`). Audit: `docs/pr-reviews/pr-2813-review/PR-REVIEW.md`.
- 2026-11-11 09:00 UTC - Claude Code (Claude Sonnet 5.5) - Maintainer ruling on AC4: an idle HTTP/2 connection closed after about 10 s is accepted (the extra 5 s changes the cost of a descriptor-exhaustion attack little; the real bound is a connection limit, EPIC #2411 case A1). AC4 reworded to match what ships, AC4 and AC5 ticked.
- 2026-11-11 10:00 UTC - Claude Code (Claude Sonnet 5.5) - Added the package ADR on closing idle connections without a `408` (maintainer discussion: silent close kept; revisit via an upstream `axum-server` feature if proxies report confusing logs). Develop merged into the branch to resolve conflicts with #2801 and #2812.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor][F24] "Maintainer discussion: silent close kept" attributes a decision that nothing on this pull request carries. No comment here mentions 408 or the ADR, and the ADR names no discussion.

As with F17, link the discussion, or drop the attribution and let the review of this pull request accept the ADR (create-adr/SKILL.md:100-101).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 2: the attribution is dropped from the log entry; the ADR is accepted by this review.

branch: "2776-axum-server-0-9-timeouts-spec"
related-pr: null
last-updated-utc: "2026-11-06 21:10"
last-updated-utc: "2026-11-11 10:00"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F25] This stamp and the new log entry (line 230) say 10:00 UTC, which is later than the commit that carries them (deda2c2, 09:53:31Z); the merge that the entry reports is from 09:33:53Z. That is F20's slip again: use the commit's time.

Line 230 also names #2801, which is the issue; the conflicting pull requests were #2807 and #2812.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 2: the stamps use the commit's time (09:53 UTC) and the entry names #2807 and #2812.


- Related ADRs: none known for timeouts.
- ADRs to create: none known. Create one if the tracker keeps a custom acceptor (or drops it)
- ADRs created: [Close idle connections without a 408 response](../../../../packages/axum-server/docs/adrs/20261111095222_close_idle_connections_without_a_408_response.md) (package-local, 2026-11-11). None other known. Create another if the tracker keeps a custom acceptor (or drops it)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F26] The rest of this line predates the ADR. The custom acceptor is already dropped, with no ADR (T5, line 227), so "Create another if the tracker keeps a custom acceptor (or drops it)" reads as an open question; keep only the configuration-keys condition.

The description lags as well: it does not list the ADR under "What changed", and it still says "no ADR" under "For the maintainer".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 2: the line keeps only the configuration-keys condition and the ADR is listed. The description is updated too.

…clippy guard for listener constructors

Add the silent-connection test (plaintext and TLS) to the HTTP tracker and
REST API packages, forbid the axum-server listener constructors outside
custom_axum_server with clippy disallowed-methods, point the call sites at
the reason, and build the token_aware_drain example through the shared
constructor.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@josecelano

Copy link
Copy Markdown
Member

ACK 954ef83

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 954ef8339312087d4b120fa87e1a25048e11a94e. Recomputed from the bytes at this head, against the previous round's head deda2c25a and the merge base e3dfd7275; git merge-tree against develop 55b44d48e writes a clean tree (exit 0; no path changed on both sides since e3dfd7275).

What moved: one commit, 954ef83, on top of deda2c25a (a fast-forward): silent-connection tests (plaintext and TLS) for the HTTP tracker and the REST API, a root clippy.toml forbidding the axum-server listener constructors, three allows, call-site comments, fixtures, and the token_aware_drain example on the shared constructor. Every path outside its 15 files is byte-identical to deda2c25a.

Previous findings: none changed state. F21 still blocks: README.md:13 is unchanged and add_timeouts still sets only the HTTP/2 keep-alive. F23 stands; the new root clippy.toml, shared configuration binding every crate to these constructors, cuts against the ADR's "not shared configuration or an inter-package contract" (:19). F25 recurs; the description now also omits the new tests and guard (F26).

The new commit: the tests reach the production 5 s timeout through the shared constructors and fail on any byte or on no close within 8 s; their helpers exist and the fixtures match the REST API's. In the merged tree every forbidden call is in custom_axum_server.rs or the signals.rs test, each under an allow with a reason.

Hygiene: a Conventional subject; the body matches the diff but for signals.rs (F27); author = committer; one footer line, which no rule in the tree forbids; no closing keyword; git diff --check deda2c25a is clean.

Findings: F28 (Minor), F27 and F25 (Nit), F29 (Suggestion), inline. F21 (Major) still blocks the verdict.

Checked, no finding: the commit-id check prints only F9's two ids; the audit is unchanged and passes the validator's logic offline; no thread has a reply since round 1; the lockfile gains only dev-dependency edges.

Checks

On the loop's compute node at this head, against the merge base e3dfd7275 (receipt server-gates-kranich-686): the repository's pre-commit gate exit 0 (49 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee (offline links) exit 0; the repository's audit validator on pr-2813-review exit 0 (13 rows, no failures). Package tests at this head: cargo test -p torrust-tracker -p torrust-tracker-axum-health-check-api-server -p torrust-tracker-axum-http-server -p torrust-tracker-axum-rest-api-server -p torrust-tracker-axum-server exit 0 (62 s, 664 passed, none failed). F27 read at this head: signals.rs:283-288 allows clippy::disallowed_methods on an axum_server::bind test listener; F21: README.md:13 still reads "about 10 s over HTTP/2". GitHub checks at this head at posting time: "Package Coverage Regression: completed/success; Package Coverage (torrust-tracker-axum-http-server): completed/success; Package Coverage (torrust-tracker-axum-health-check-api-server): completed/success; Package Coverage (torrust-tracker-axum-server): completed/success; Package Coverage (torrust-tracker-axum-rest-api-server): completed/success; Docker E2E: completed/skipped; Documented Clippy Allows: completed/success; Unit (stable): in_progress/pending; Unit (nightly): in_progress/pending; Shipped Features: completed/success; Layer Boundary Bans: completed/success; Workspace Packaging: completed/success; Generate Coverage Report: completed/success; Discover Package Coverage: completed/success; Test (Docker) (release): in_progress/pending; Build on ubuntu-latest (stable): completed/success; Build on ubuntu-latest (nightly): completed/success; Build on macos-latest (stable): completed/success; Build on windows-latest (nightly): completed/success; Build on macos-latest (nightly): completed/success; Build on windows-latest (stable): completed/success; Docs Lint: completed/success". At posting, develop is f8b0f26e9.

- 2026-11-10 21:40 UTC - Claude Code (Claude Sonnet 5.5) - Review round 1 (PR 2813: Copilot lite review and da2ce7, 14 findings). F1: reran the HTTP/2 probes with the wrapper; the wrapper does not shorten idle HTTP/2 (10.0 s, probable cause in the evidence), so the removal stands, but AC4 and AC5 are reopened (F5) for the maintainer's ruling and the unmeasured "already 10 s on develop" claim is dropped. Also: lockfile restored to develop's resolution for the two unrelated edges (F4), citations by symbol in the EPIC (F3), commit ids dropped (F2), red and green output with commands recorded (F6), HTTP/2 tests now require a response and a close no earlier than the injected timeout (F7), probe note replaced (F8), plus the Copilot suggestions (probe script trap, drop guard in the health check test, longer test timeouts, fixture README, doc note on `from_tcp_with_timeouts`). Audit: `docs/pr-reviews/pr-2813-review/PR-REVIEW.md`.
- 2026-11-11 09:00 UTC - Claude Code (Claude Sonnet 5.5) - Maintainer ruling on AC4: an idle HTTP/2 connection closed after about 10 s is accepted (the extra 5 s changes the cost of a descriptor-exhaustion attack little; the real bound is a connection limit, EPIC #2411 case A1). AC4 reworded to match what ships, AC4 and AC5 ticked.
- 2026-11-11 10:00 UTC - Claude Code (Claude Sonnet 5.5) - Added the package ADR on closing idle connections without a `408` (maintainer discussion: silent close kept; revisit via an upstream `axum-server` feature if proxies report confusing logs). Develop merged into the branch to resolve conflicts with #2801 and #2812.
- 2026-11-11 11:00 UTC - Claude Code (Claude Sonnet 5.5) - Maintainer asked for behaviour tests on every service: added the silent-connection test (plaintext and TLS) to the HTTP tracker and REST API packages, next to the existing health check API one; they fail when the constructor is bypassed (checked by swapping in `axum_server::from_tcp`). Also added the root `clippy.toml` `disallowed-methods` guard for the `axum-server` listener constructors, a documented `allow` in `custom_axum_server.rs`, doc comments at every call site, and switched the `token_aware_drain` example to the shared constructor.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor][F28] "Maintainer asked for behaviour tests on every service" attributes a request that nothing on this pull request carries: the maintainer's only comment here is a bare ACK of an earlier head. That is the defect of F17 and F24; link the request or drop the attribution.

"They fail when the constructor is bypassed (checked by swapping in axum_server::from_tcp)" reports a red run with no command or output, which F6 asked for under the fix-bug skill; record it under evidence/ or say it was not kept. The entry also calls the new // comments "doc comments" and leaves out the signals.rs allow (F27).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 2: the attribution is dropped, the red run is recorded in evidence/red-run-service-tests.txt with its command, and the entry says "comments" and no longer needs the signals.rs exception (F27).

Comment thread packages/axum-server/README.md Outdated

Build every listener through `custom_axum_server`: building one with `axum_server::from_tcp` directly leaves idle connections open, which lets a flood of silent connections exhaust the process's file descriptors. Two guards enforce this:

- The root `clippy.toml` forbids the `axum-server` listener constructors (`disallowed-methods`). Only `custom_axum_server.rs` allows them, with a documented `allow`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F27] "Only custom_axum_server.rs allows them" is not what the code does: this commit also allows clippy::disallowed_methods on the signals.rs test listener (signals.rs:283-288, axum_server::bind). The clippy.toml header (line 7, "the only place allowed to call them") and the commit body ("outside custom_axum_server") say the same.

Name the test exception, or build that listener with custom_axum_server::from_tcp_with_timeouts, as this commit does for the token_aware_drain example, which has the same code.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 2: the signals.rs test listener is built with custom_axum_server::from_tcp_with_timeouts, its allow is removed, and the README, clippy.toml header and ADR are true again as written.

branch: "2776-axum-server-0-9-timeouts-spec"
related-pr: null
last-updated-utc: "2026-11-06 21:10"
last-updated-utc: "2026-11-11 11:00"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F25] Still open, and it recurs: this stamp and the new entry (line 231) say 11:00 UTC, later than the commit that carries them (954ef83, 10:29:41Z). Line 230 still says 10:00 and still names #2801 where the conflicting pull requests were #2807 and #2812. Use the commit's time.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same slip, fixed in fix(axum-server): [#2776] address PR review round 2: the entry uses the commit's time (10:29 UTC).

Comment thread clippy.toml
# #2411 case A2). See `packages/axum-server/docs/adrs/` and `packages/axum-server/README.md`.
#
# `custom_axum_server.rs` is the only place allowed to call them, with a documented `allow`.
disallowed-methods = [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Suggestion][F29] The list covers only the axum-server constructors. axum::serve (axum 0.8.9 is in the lockfile) serves a router with none of these timeouts and is not forbidden; adding it closes the other route to an untimed listener. It is also worth checking against the axum-server 0.9 source that every listed path resolves and that no public constructor is missing, such as an associated Server::from_tcp if 0.9 still has one.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid. Fixed in fix(axum-server): [#2776] address PR review round 2: axum::serve is forbidden, as are axum_server::from_unix and tls_rustls::from_unix_rustls. I checked the 0.9.2 source: the public constructors are bind, from_tcp, from_unix, Server::bind, Server::from_listener, bind_rustls, from_tcp_rustls and from_unix_rustls, and clippy accepts every path in the config.

josecelano-bot and others added 2 commits November 11, 2026 11:05
Move the ADR to docs/adrs (protocol behaviour), state the HTTP/2 condition in
the package README, build the signals test listener and the drain example
through the shared constructor, forbid axum::serve and the unix constructors
in clippy.toml, record the red run of the service tests, and correct the
stamps, attributions and evidence wording.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…dit and retrospective

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@josecelano

Copy link
Copy Markdown
Member

ACK 6b38430

@josecelano
josecelano requested a review from da2ce7 November 11, 2026 11:25
@josecelano

Copy link
Copy Markdown
Member

ACK 6b38430

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 6b38430c8acd53cf6d9128d14f4b280a6b5d70fe. Recomputed from the bytes at this head, against the previous round's head 954ef8339 and the merge base e3dfd7275; git merge-tree against develop f8b0f26e9 writes a clean tree (exit 0; no path changed on both sides).

What moved: 4793460 and 6b38430, a fast-forward of 954ef8339; 19 files. Every other path is byte-identical.

Previous findings that changed state:

  • F5 FIXED: AC4 reads "no worse than with the wrapper (V8)".
  • F10 FIXED: log stamped from the replies.
  • F11 FIXED: "13 findings".
  • F12 FIXED: the EPIC names from_tcp_rustls_with.
  • F13 FIXED: the file says it is filtered (but F32).
  • F14 FIXED: git diff --check e3dfd7275 exits 0.
  • F15 FIXED: "did not shorten".
  • F16 FIXED: M4 gives AC4's figures.
  • F17 FIXED: the ACK is taken as the ruling.
  • F19 FIXED: past tense.
  • F20 FIXED: 08:53.
  • F21 FIXED: README.md:13 states the ping condition add_timeouts sets.
  • F23 FIXED: root ADR and index row; no stale path.
  • F24 FIXED: attribution dropped.
  • F25 FIXED: stamps are commit minutes; #2807 and #2812.
  • F26 PARTLY FIXED (F30).
  • F27 FIXED: no other allow.
  • F28 FIXED: red run recorded.
  • F29 FIXED: axum::serve forbidden.

The new commits: the merged tree calls the listed constructors only in the two allowed ones; the signals.rs requests complete at once and its drains end within 2 s. The ADR Scope matches the placement ADR (:48-51). The 24 audit rows match their threads and replies.

Hygiene: Conventional subjects; author = committer; one footer line each, which no rule in the tree forbids; no closing keyword; git diff --check 954ef8339 is clean.

Findings: F9 (Minor, still open), F30 to F33 (Nit), inline; none blocks.

Checked, no finding: the validator's logic passes offline (37 rows); replies and description cite no commit id; red and green test counts agree.

Checks

On the loop's compute node at this head, against the merge base e3dfd7275 (receipt server-gates-kranich-694): the repository's pre-commit gate exit 0 (156 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee (offline links) exit 0; the repository's audit validator on pr-2813-review exit 0 (37 rows, 2 log entries, no failures). Package tests at this head: cargo test -p torrust-tracker -p torrust-tracker-axum-health-check-api-server -p torrust-tracker-axum-http-server -p torrust-tracker-axum-rest-api-server -p torrust-tracker-axum-server exit 0 (77 s, 664 passed, none failed). F21 read at this head: README.md:13 now bounds idle HTTP/2 connections only when the client does not answer the keep-alive pings, as add_timeouts sets. git merge-tree against develop f8b0f26e9 is clean. GitHub checks at this head at posting time: "Package Coverage Regression: completed/success; Package Coverage (torrust-tracker-axum-rest-api-server): completed/success; Package Coverage (torrust-tracker-axum-health-check-api-server): completed/success; Package Coverage (torrust-tracker-axum-server): completed/success; Package Coverage (torrust-tracker-axum-http-server): completed/success; Build on macos-latest (nightly): completed/success; Build on macos-latest (stable): completed/success; Build on ubuntu-latest (nightly): completed/success; Build on windows-latest (nightly): completed/success; Build on ubuntu-latest (stable): completed/success; Build on windows-latest (stable): completed/success; Docs Lint: completed/success; Test (Docker) (release): in_progress/pending; Docker E2E: completed/skipped; Workspace Packaging: completed/success; Layer Boundary Bans: completed/success; Unit (stable): completed/success; Documented Clippy Allows: completed/success; Shipped Features: completed/success; Unit (nightly): completed/success; Generate Coverage Report: completed/success; Discover Package Coverage: completed/success". At posting, develop is f8b0f26e9.

- Source URL: https://github.com/torrust/torrust-tracker/pull/2813#discussion_r4531153163
- Concern: The audit cites PR-branch commit ids (the reviewed head and a refactor commit).
- Solution: Names the head by the subject of its last commit; the check is stated as "prints nothing".
- Current-tree verification: grep -n "024eb565a\|167841cd3" docs/pr-reviews/pr-2813-review/PR-REVIEW.md returns nothing.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor][F9] Still open, moved here. This verification quotes both ids F9 named (the round 1 reviewed head and the refactor commit). The open-pull-request commit-id check, run verbatim at this head, prints exactly those two, found only on this line. The grep it states would print this line, not nothing. Lines 31 and 163 are fixed. State this check the way line 163 does, without the ids.


- Related ADRs: none known for timeouts.
- ADRs to create: none known. Create one if the tracker keeps a custom acceptor (or drops it)
- ADRs created: [Close idle connections without a 408 response](../../../adrs/20261111095222_close_idle_connections_without_a_408_response.md) (repository-level, 2026-11-11). Create another ADR if timeouts become configuration keys.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F30] F26's edit left the old continuation on line 124, so the item renders as "... Create another ADR if timeouts become configuration keys. with consequences worth recording, or if timeouts become configuration keys." Drop line 124.

In this file too, line 12 and the new entry (line 232) say 11:03. That is neither the commit's time (4793460, 11:05:08Z) nor a forge time, which process-pr-review asks for (SKILL.md:120-122). It is not later than the commit, so it is not F25's slip.


Round 1: Copilot review 5846895000 (lite review: the review body reports that the full agentic review timed out; five inline findings) and da2ce7 review 5846910258 (CHANGES_REQUESTED, eight findings) on the head `docs(issues): [#2776] record evidence, decisions and EPIC #2411 case A2 update`. All thirteen are valid and fixed in one batch. Thread state is OPEN for all: the maintainer or reviewer resolves them (the bot resolveReviewThread mutation was not attempted, as it was denied in earlier audits).

Round 2: da2ce7 reviews 5850237912, 5856329614, 5856670353, 5856843868, 5857093258 and 5857566978 on later heads (reviewer findings F9 to F29, here F14 to F34; three re-posts of their F21 and one of their F25 are F35 to F37). All are valid and fixed in one batch; thread state is OPEN for all.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F31] The counts disagree with the rows. The reviewer's F21 was posted three times (two re-posts, F35 and F36), and F25 twice (one re-post, F37). That is three re-raises, as the table's three RE_RAISE_OF rows show.

This line and the log (line 561) say "three re-posts of their F21 and one of their F25", which is four. Line 561 also counts twenty-four threads, which is 21 + 3. The retrospective gives 4 re-raised findings (line 27) beside "re-posted twice" (line 50). It also says "1 of them audit-only" (line 29), but two branch commits touch only the audit and the retrospective: round 1's and 6b38430.

- Reviewer finding ID: F29
- Source URL: https://github.com/torrust/torrust-tracker/pull/2813#discussion_r4536956042
- Concern: clippy.toml does not forbid axum::serve; paths should be checked against the 0.9 source.
- Solution: axum::serve and the two unix constructors added; every path checked against axum-server 0.9.2 and accepted by clippy.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F32] Two Solutions state checks that the bytes do not bear out ("State only what ran", process-pr-review SKILL.md:123-125).

Here: Cargo.lock resolves axum-server 0.9.0, and the ADR cites 0.9.0. A read of the 0.9.2 source says nothing about the build; name the shipped version, or recheck at 0.9.0.

Line 305: "every target header kept", and the note on green-run.txt:3 claims the same. In fact the four doc-test result lines at the end have no header, and the kept headers are trimmed of their binary paths.

let socket =
std::net::TcpListener::bind(SocketAddr::new(IpAddr::V4(Ipv4Addr::LOCALHOST), 0)).expect("socket should bind");
socket.set_nonblocking(true).expect("socket should be non-blocking");
let listener = custom_axum_server::from_tcp_with_timeouts(socket).expect("server should be created");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F33] Outside the diff: the body of 4793460, which makes this change, says it also builds "the drain example through the shared constructor". examples/token_aware_drain.rs is not in that commit: 954ef83 made the change.

@da2ce7

da2ce7 commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

ACK 6b38430 — the README's HTTP/2 ping condition against add_timeouts, the root ADR, the clippy guard and the round 2 audit rows recomputed against this head's bytes and the review capture

@josecelano

Copy link
Copy Markdown
Member

ACK 6b38430

@josecelano
josecelano merged commit a83f3ef into torrust:develop Nov 11, 2026
25 checks passed
josecelano added a commit that referenced this pull request Nov 12, 2026
…ssues/closed

6471ce4 docs(pr-reviews): [#2830] record the round 3 reply URLs (josecelano-bot)
bea2dd8 docs(pr-reviews): [#2830] restore the template sections and fix the R1 and F5 rows (josecelano-bot)
a58beab docs(pr-reviews): [#2830] record the round 2 reply URLs (josecelano-bot)
00fe496 docs(pr-reviews): [#2830] add the PR audit record (josecelano-bot)
fa3d65c docs(issues): [#2776] stamp the EPIC and the spec with the time of the fix (josecelano-bot)
615e8d8 docs(issues): [#2776] address PR 2830 review (josecelano-bot)
3c8c19b docs(issues): [#2776] archive the closed issue spec to docs/issues/closed (josecelano-bot)

Pull request description:

  Related to #2776 (closed by #2813, merged). Archives its spec.

  - Moves `docs/issues/open/2776-2411-axum-server-0-9-timeouts/` to `docs/issues/closed/`.
  - Sets `status: done` and `related-pr: 2813`, ticks the completed checkpoints, adds a progress-log entry.
  - Adds #2776 to the EPIC #2411 Subissues table and updates the path references in the EPIC and the ADR. The PR 2813 audit keeps its original record.

  Closure check: #2776 is `CLOSED` on GitHub (closed 2026-11-11 12:00 UTC by #2813).

  Validation: the pre-commit hooks pass (`linter all` including the Markdown link check, `cargo fmt`).

  T8 / AC7 stay with the maintainer: #324, #612, #613 and #603 remain open until he reviews them.

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

ACKs for top commit:
  josecelano:
    ACK 6471ce4
  da2ce7:
    ACK 6471ce4 — the audit record's F9 to F11 rows, reply URLs and restored template sections, its offline validator replay and the conflict-free merge with develop recomputed at this head

Tree-SHA512: e8b66d14feb45b1769cdfe94b884b8375191fb5a7592dfc994afc81c6f1351436837bcb7cf7a6db27ca82a25b1146af592f9df527a3fd9aa5bbc3bbeb9ed2014
josecelano added a commit that referenced this pull request Nov 14, 2026
…and #613

c7c0a6d docs(pr-reviews): [#2849] record the findings of reviews 5889973387 and 5903116153 (josecelano-bot)
a73e87b docs(pr-reviews): [#2849] correct the round-4 review time, push order and counts (josecelano-bot)
bc631be docs(pr-reviews): [#2849] correct the round-2 and round-3 log stamps from git and forge times (josecelano-bot)
d363490 docs(pr-reviews): [#2849] correct the thread count, reply wording and tree claims (josecelano-bot)
3f16875 docs(pr-reviews): [#2849] cite commit subjects instead of PR-branch commit ids (josecelano-bot)
90b1558 docs(pr-reviews): [#2849] record the no-change threads as superseded (josecelano-bot)
b12818c docs(pr-reviews): [#2849] use an allowed severity for the automated round-4 rows (josecelano-bot)
19959db docs(pr-reviews): [#2849] record review round 4's findings (josecelano-bot)
6cd5992 docs(issues): [#2776] name the HTTP tracker's own TLS test for #613 (josecelano-bot)
ba708fd docs(pr-reviews): [#2849] create the review audit record (josecelano-bot)
1c677df docs(issues): [#2776] pad the related-issues summary table to one width (josecelano-bot)
1de5cb7 docs(issues): [#2776] set last-updated-utc before the commit time (josecelano-bot)
98abc2b docs(issues): [#2776] separate the TLS and plaintext figures in the #612 verdict (josecelano-bot)
aab131c docs(issues): [#2776] bump last-updated-utc and add the progress-log entry's time (josecelano-bot)
0e45e5e docs(issues): [#2776] name which listeners the baseline already protected (josecelano-bot)
6121f76 docs(issues): [#2776] attribute the REST API's and HTTP tracker's own TLS evidence (josecelano-bot)
95c77bd docs(issues): [#2776] use the issues' own titles in the related-issues record (josecelano-bot)
9f5d500 docs(issues): [#2776] name the health check API's own test and the axum-server suite (josecelano-bot)
0d3331c docs(issues): [#2776] record the disposition of #324, #603, #612 and #613 (josecelano-bot)

Pull request description:

  Records, inside the repo, what was decided for four older GitHub issues related to #2776 (axum-server 0.9 timeouts, implemented by #2813): #612, #613, #603 and #324. Future agents then do not need the GitHub API to know what these issues said and why they were closed or kept.

  - New `docs/issues/closed/2776-2411-axum-server-0-9-timeouts/related-issues.md`: per issue, the original report, verdict, evidence and where any remainder lives.
  - #612 and #613: fixed by #2813. #603: all checklist items done once those close. #324: stays open, re-scoped to EPIC #2411 case A1.
  - One progress-log line in the #2776 spec (T8 and AC7).
  - New `docs/pr-reviews/pr-2849-review/PR-REVIEW.md`: the review audit record for this PR.

  History rewritten during review: the commit `docs(issues): address review findings on the related-issues record`, which mixed five review fixes, was split into five commits, one per finding, and the branch was force-pushed. The spec files' bytes are unchanged by the split; every step is kept.

  Docs only. The maintainer closes or comments on the GitHub issues.

  Related to #324, #603, #612, #613, #2776

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

ACKs for top commit:
  da2ce7:
    ACK c7c0a6d — all 28 review threads have a reply, an audit row and a resolution, the audit validator's checks pass, and the commit-id check is clean
  josecelano:
    ACK c7c0a6d

Tree-SHA512: 0e4d15c35a9006e8fc1f4ed79c0cdf76f1a08394248d41ffd746ac1c15a02013b1eead65fa74df7563c0a48a89fbbd35a6e192393ed58c1b4e25a62656dc04a2

This branch was previously deployed

1 inactive deployment
coverage — 6b38430c Deployed Nov 11, 2026 by josecelano-bot via Generate Coverage Report #3049
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adopt axum-server 0.9 timeouts and close idle-connection gaps

4 participants